#ifndef _DFROBOT_PH_H_
#define _DFROBOT_PH_H_

#include "Arduino.h"


class DFRobot_PH
{
public:
    DFRobot_PH();
    ~DFRobot_PH();
    float readPH(uint32_t pin);

private:
    int*  pHArray;
    bool  first;
    bool  enable;
    float valuePrev;
    int   pHArrayIndex;
    float map = 4096;
    float aref ;
    float avergeArray();
};


#endif // _DFROBOT_PH_H_
